package
{
	import Features.EggPeiceScreenLocker;
	
	import org.SData.SGeneralData;

	public class Application
	{
		public static function initApplication():void
		{
			SGeneralData.singleton.initIntegerValue( [ShareConstants.GData_exp, ShareConstants.GData_level, ShareConstants.GData_gold, ShareConstants.GData_coin] );
		}
		
		public static function goRatField():void
		{
			var lock:EggPeiceScreenLocker	=	new EggPeiceScreenLocker();
			lock.lock( function():void
			{
				Global.viewsCabinet.setActiveScene( ShareMacros.MV_RatField );
				lock.unlock( null);
			});
		}
		
		public static function goMainMenu():void
		{
			var lock:EggPeiceScreenLocker	=	new EggPeiceScreenLocker();
			lock.lock( function():void
			{
				Global.viewsCabinet.setActiveScene( ShareMacros.MV_MainMenu );
				lock.unlock( null );
			});
		}
	}
}